package com.example.demo.service.Impl;

import com.example.demo.dao.WorkAreaMapper;
import com.example.demo.entity.Product.WorkArea;
import com.example.demo.service.WorkAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkAreaImpl implements WorkAreaService {

    @Autowired
    WorkAreaMapper workAreaMapper;

    @Override
    public List<WorkArea> findByProperty(String property) {
        List<WorkArea> workAreas = workAreaMapper.findByProperty(property);
        return workAreas;
    }
}
